if (EPOLL_EXISTS)
    set(yolanda_lib
           common.h
            read.c
            log.c
            tcp_client.c
            tcp_server.c
            event_loop.c
            )
endif ()


add_library(yolanda ${yolanda_lib})
#强制按照C语言编译
set_target_properties(yolanda PROPERTIES LINKER_LANGUAGE C)
target_link_libraries(yolanda pthread)

install(TARGETS yolanda DESTINATION lib)


#file(GLOB HEADERS "*.h")
#install(FILES ${HEADERS} DESTINATION include/)

